package com.jt.dify;

import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.web.cors.CrossFilter;

@SolonMain
public class App {
    public static void main(String[] args) {

        Solon.start(App.class, args, app -> {

            //跨域配置
            app.filter(-1, new CrossFilter().allowedOrigins("*"));

            //启动websocket服务
            app.enableWebSocket(true);
        });
    }
}